package com.autumn.zero.authorization.application.dto;

import javax.validation.constraints.NotNull;

import com.autumn.common.api.application.dto.DefaultEntityDto;

/**
 * 权限Dto
 * 
 * @author 杨昌国 2018-12-17 11:06:00
 */
public class PermissionDto extends DefaultEntityDto {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2214488432991881948L;

	/**
	 * 授权对象id
	 */
	@NotNull(message = "授权对象id不能为空")
	private Long id;

	/**
	 * 资源类型
	 */
	@NotNull(message = "资源类型不能为空")
	private Integer resourcesType;

	@NotNull(message = "授权对象id不能为空")
	@Override
	public Long getId() {
		return this.id;
	}

	@Override
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * 获取资源类型
	 * 
	 * @return
	 */
	public Integer getResourcesType() {
		return resourcesType;
	}

	/**
	 * 设置资源类型
	 * 
	 * @param resourcesType 资源类型
	 */
	public void setResourcesType(Integer resourcesType) {
		this.resourcesType = resourcesType;
	}
}
